import VueRouter from 'vue-router'

const routes =  [
  {
    path: '/',// 重定向
    redirect: '/home'
  },
  {
      path: '/home',
      name: '首页',
      component: resolve => require(['@/views/home'], resolve),
  },
  {
    path: '/formPage',
    name: '首页',
    component: resolve => require(['@/views/formPage'], resolve),
  }
]
const router = new VueRouter({
    // mode: "history",
    base: process.env.BASE_URL,  // 如果使用history模式，必须设置base参数
    routes
});

export default router;
